/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-06-22
 * Time: 23:11
 */
interface A1 {
    void func1();
    default void func2() {//接口的默认方法
        System.out.println(1);
        func3();
    };//(课件这里加了; 我试了一下，加不加都可以)
    private void func3() {//接口的私有方法
        System.out.println(2);
    }
}
public class Demo implements A1{
    @Override
    public void func1() {

    }
    public static void main(String[] args) {

    }
}
